.class Lcom/opongo/blogapp/adapter/ViewPagerAdapter$4;
.super Ljava/lang/Object;
.source "ViewPagerAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/adapter/ViewPagerAdapter;->addFooterLoadMore(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/adapter/ViewPagerAdapter;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$4;->this$0:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;

    .line 290
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "arg0"

    .prologue
    const/4 v5, 0x0

    const/4 v6, 0x0

    .line 293
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 295
    .local v2, tag:I
    iget-object v3, p0, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$4;->this$0:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;

    #getter for: Lcom/opongo/blogapp/adapter/ViewPagerAdapter;->mAdapterArray:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/opongo/blogapp/adapter/ViewPagerAdapter;->access$0(Lcom/opongo/blogapp/adapter/ViewPagerAdapter;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/opongo/blogapp/adapter/PostListAdapter;

    .line 297
    .local v1, mAdapter:Lcom/opongo/blogapp/adapter/PostListAdapter;
    invoke-virtual {v1}, Lcom/opongo/blogapp/adapter/PostListAdapter;->removeListViewFooter()V

    .line 299
    iget-object v3, p0, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$4;->this$0:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;

    #getter for: Lcom/opongo/blogapp/adapter/ViewPagerAdapter;->activity:Landroid/app/Activity;
    invoke-static {v3}, Lcom/opongo/blogapp/adapter/ViewPagerAdapter;->access$3(Lcom/opongo/blogapp/adapter/ViewPagerAdapter;)Landroid/app/Activity;

    move-result-object v3

    .line 300
    const-string v4, "layout_inflater"

    invoke-virtual {v3, v4}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    .line 299
    check-cast v3, Landroid/view/LayoutInflater;

    .line 301
    const v4, 0x7f03000d

    invoke-virtual {v3, v4, v5, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 303
    .local v0, footerView:Landroid/view/View;
    invoke-virtual {v1, v0, v5}, Lcom/opongo/blogapp/adapter/PostListAdapter;->setListViewFooter(Landroid/view/View;Landroid/widget/ListView;)V

    .line 305
    new-instance v3, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$downloadOldPostsAsyncTask;

    iget-object v4, p0, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$4;->this$0:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;

    invoke-direct {v3, v4, v5}, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$downloadOldPostsAsyncTask;-><init>(Lcom/opongo/blogapp/adapter/ViewPagerAdapter;Lcom/opongo/blogapp/adapter/ViewPagerAdapter$downloadOldPostsAsyncTask;)V

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Integer;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v4, v6

    const/4 v5, 0x1

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-virtual {v3, v4}, Lcom/opongo/blogapp/adapter/ViewPagerAdapter$downloadOldPostsAsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 306
    return-void
.end method
